-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ChromaDB Support. #27
Conversation
🧪 Test coverage: 92.60% Code Coverage Summary
Diff against main
Results for commit: 25275d1 Minimum allowed coverage is ♻️ This comment has been updated with latest results |
Trivy scanning results. .venv/lib/python3.10/site-packages/PyJWT-2.9.0.dist-info/METADATA (secrets)Total: 1 (MEDIUM: 1, HIGH: 0, CRITICAL: 0) MEDIUM: JWT (jwt-token) .venv/lib/python3.10/site-packages/litellm/proxy/_types.py (secrets)Total: 1 (MEDIUM: 1, HIGH: 0, CRITICAL: 0) MEDIUM: Slack (slack-web-hook) |
from ragbits.document_search.vector_store.in_memory import InMemoryVectorStore, VectorDBEntry | ||
|
||
|
||
class ChromaDBStore(InMemoryVectorStore): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why it derives from InMemoryVectorStory? It should be VectorStore base class.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider it done.
packages/ragbits-document-search/src/ragbits/document_search/vector_store/chromadb_store.py
Outdated
Show resolved
Hide resolved
|
||
|
||
def test_is_json_valid_string(mock_chromadb_store): | ||
# Arrange |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really nice that you used AAA formatting for this test, could you also apply it to others ? Also, IMO comments are not necessary, only newlines for readability are useful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@akonarski-ds it was covered in separate pull request.
packages/ragbits-document-search/tests/unit/test_chromadb_store.py
Outdated
Show resolved
Hide resolved
packages/ragbits-document-search/src/ragbits/document_search/vector_store/chromadb_store.py
Show resolved
Hide resolved
packages/ragbits-document-search/src/ragbits/document_search/vector_store/chromadb_store.py
Outdated
Show resolved
Hide resolved
cf88e79
to
6a942a1
Compare
Add ChromaDB Support.